<!DOCTYPE html>
<html>
{include file="public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
		font-size:12px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
</style>
<body class="zanpian-body">
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="callout callout-title">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                <h4>{$nav.title}</h4>
                {notempty name="nav.remark"}
                <p>{$nav.remark}</p>
                {/notempty}
</div>  
<div class="panel-body" style="border:none">
<!-- /.panel-tool -->
    <div class="tab-content" style="border:none">
           <div class="tab-content tab-fade fade active in " style="border:none"> 
  <div class="box-header with-border mb15">
              <h3 class="box-title">系统缓存管理</h3>
            </div>
<div class="row">
  <div class="col-md-3 col-sm-4 col-xs-6 mb15">
  
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">清空系统缓存：</span>
                </div>
                <!-- /btn-group -->
               <span  class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'sys'))}"><i class="fa fa-trash"></i> 清空</span>
              </div>   
              </div>   
  <div class="col-md-3 col-sm-4 col-xs-6 mb15">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">清空模版缓存：</span>
                </div>
                <!-- /btn-group -->
               <span  class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'tpl'))}"><i class="fa fa-trash"></i> 清空</span>
              </div>   
              </div> 
  <div class="col-md-3 col-sm-4 col-xs-6 mb15">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">清空采集缓存：</span>
                </div>
                <!-- /btn-group -->
               <span  class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'cai'))}"><i class="fa fa-trash"></i> 清空</span>
              </div>   
              </div> 
   <div class="col-md-3 col-sm-4 col-xs-6 mb15">
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">清空全站缓存：</span>
                </div>
                <!-- /btn-group -->
              <span  class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'all'))}"><i class="fa fa-trash"></i> 清空</span> 
              </div>   
              </div>      
             </div>
            <div class="box-header with-border">
              <h3 class="box-title">循环缓存管理</h3>
            </div>
            <div class="box-body pl0" id="foreach">
            <div class="w40" style="float:left">
            <select name="model" class="form-control select2" style="width:100%">      
            <option value="">选择清空模型</option>
            {volist name=":config('model')" id="vo"}
            {notin name="vo.id" value="8,9,11"}
            <option value="{$vo.name}">{$vo.title}循环缓存</option>
            {/notin}
            {/volist}
            </select> 
            </div>
            <span style="float:left; margin-left:10px;" class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'foreach'))}" form="#foreach"><i class="fa fa-trash"></i> 清空</span>       
           </div>      
             <div class="box-header with-border">
              <h3 class="box-title">内容缓存管理</h3>
            </div>
            <div class="box-body pl0" id="data">
            <div class="w40" style="float:left">
            <select name="model" class="form-control select2" style="width:100%">      
            <option value="">选择清空模型</option>
            {volist name=":config('model')" id="vo"}
            {notin name="vo.id" value="7,8,9,11,13,14,15"}
            <option value="{$vo.name}">{$vo.title}内容缓存</option>
            {/notin}
            {/volist}
            </select> 
            </div>
              <div class="w200" style="float:left;margin-left:5px;">
            <select name="day" class="form-control select2" style="width:100%">      
           <option value="today">今天更新</option>
           <option value="yesterday">昨天更新</option>
           <option value="week">本周更新</option>
           <option value="month">本月更新</option>
           <option value="year">今年更新</option>
           <option value="all">全部数据</option>
            </select> 
            </div>          
            <span style="float:left; margin-left:10px;" class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'data'))}" form="#data"><i class="fa fa-trash"></i> 清空</span>       
           </div> 
           {notempty name="GLOBALS['config']['cache']['html_cache_on']"}
             <div class="box-header with-border">
              <h3 class="box-title">静态缓存管理</h3>
            </div>
            <div class="row">
  <div class="col-md-3 col-sm-4 col-xs-6 pt15 mb15">
  
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">清空首页静态缓存：</span>
                </div>
                <!-- /btn-group -->
               <span  class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'index'))}"><i class="fa fa-trash"></i> 清空</span>
              </div>   
              </div>  
   <div class="col-md-3 col-sm-4 col-xs-6 pt15 mb15">
  
               <div class="input-group">
                <div class="input-group-btn">
                <span class="btn btn-default">清空单页静态缓存：</span>
                </div>
                <!-- /btn-group -->
               <span  class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'my'))}"><i class="fa fa-trash"></i> 清空</span>
              </div>   
              </div>   
              </div>                        
            <div class="box-body pl0" id="html">
            <div class="w40" style="float:left">
            <select name="model" class="form-control select2" style="width:100%">      
            <option value="">选择清空模型</option>
            {volist name=":config('model')" id="vo"}
            {notin name="vo.id" value="7,8,9,11,13,14,15"}
            <option value="{$vo.name}">{$vo.title}内容缓存</option>
            {/notin}
            {/volist}
            </select> 
            </div>
             <div class="w200" style="float:left;margin-left:5px;">
            <select name="day" class="form-control select2" style="width:100%">      
           <option value="today">今天更新</option>
           <option value="yesterday">昨天更新</option>
           <option value="week">本周更新</option>
           <option value="month">本月更新</option>
           <option value="year">今年更新</option>
            </select> 
            </div>          
            <span style="float:left; margin-left:10px;" class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'html'))}" form="#html"><i class="fa fa-trash"></i> 清空</span>       
           </div>
 <div class="box-body pl0" id="list">
            <div class="w40" style="float:left">
            <select name="cid" class="form-control select2" style="width:100%">      
            <option value="">选择分类</option>
            {volist name="list" id="vo"}
            <option value="{$vo.list_id}">{$vo.title_show}</option>
            {/volist}
            </select> 
            </div>
             <div class="w200" style="float:left;margin-left:5px;">
            <input  class="form-control w200 text-center" name="page" type="text" value="5" placeholder="分页数量" > 
            </div>          
            <span style="float:left; margin-left:10px;" class="btn btn-danger btn-del ajax-post" href="{:url('admin/caches/clear',array('type'=>'list'))}" form="#list"><i class="fa fa-trash"></i> 清空</span>       
           </div>                               
          
          {/notempty}
           
           </div>
            <!-- /.tab_1-->
            </div>
            
         </div>   
       <!-- /.box-footer --> 
         <!-- /.panel-body --> 
                   </div>
       </div>  
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();
});	
</script>
</body>
</html>
